package com.audaque.springboot.foshanupload.web.esdatademo.repository;

import com.audaque.springboot.foshanupload.web.esdatademo.model.pojo.Country;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CountryRepository extends ElasticsearchRepository<Country, String> {
    List<Country> findByCnOrNameOrCodeOrPyOrPy1OrZhHant(String cn,String name,String code, String py,String py1,String zhHant);

    Country findById(Long countryId);
    Country findBy_id(String _id);
    Country findByCode(String code);


}
